package org.jsbd.boss.action;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang.StringUtils;
import org.jsbd.boss.common.DataGridModel;
import org.jsbd.boss.common.ResponseUtils;
import org.jsbd.boss.domian.DaylimitBean;
import org.jsbd.boss.domian.DaylimitBeanVO;
import org.jsbd.boss.domian.channel.MiguEffect;
import org.jsbd.boss.service.IDaylimitService;
import org.jsbd.boss.service.IMiguUserAvailableService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/migu/user/available")
public class MiguUserAvailableController {

  private static final Logger logger = LoggerFactory.getLogger(MiguUserAvailableController.class);

  @Autowired
  private IMiguUserAvailableService miguUserAvailableService;

  /**
   * 咪咕可用帐号
   * @return
   */
  @RequestMapping(value = "/list")
  public String daylimit() {
    return "miguUser/availableList";
  }

  /**
   * 
   * 咪咕可用帐号数据
   * @param model
   * @return
   */
  @RequestMapping(value = "/listJson", method = RequestMethod.POST)
  @ResponseBody
  public Map<String, Object> listJson(DataGridModel page, MiguEffect musVO) {
	  return miguUserAvailableService.getMiguUserAvailable(page, musVO);
  }
  
}
